@(
        name:String
)
<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title>test</title>
        <script type="text/javascript" src="@routes.Assets.versioned("javascripts/jquery.min.js")"></script>
        <script>
                $("#checkall").click(function(){
                    var ischeck = $('#checkall').prop('checked')
                    $(".check1").prop("checked",ischeck);
                });
                function selectPa() {
                    var isAllChecked = true;
                    $('.ul1').find('input[type=checkbox]').each(function (ele) {
                        if (!$(ele).prop('checked')){
                            isAllChecked = false;
                        }
                    });
                    if (!isAllChecked) {
                        $('#checkall').prop('checked', false);
                    }
                }
        </script>
    </head>
    <body>
        @name
        <input type="checkbox" name="" id="checkall">全选/取消
        <div>
            <ul class="ul1">
                <li><input type="checkbox" name="" class="check1" onclick="selectPa();">子选框1</li>
                <li><input type="checkbox" name="" class="check1" onclick="selectPa();">子选框2</li>
                <li><input type="checkbox" name="" class="check1" onclick="selectPa();">子选框3</li>
            </ul>
        </div>
        <div>
            <form action="/uploadFile/", enctype="multipart/form-data">
                <input type="file" name="picture">
                <p>
                    <input type="submit">
                </p>

            </form>
        </div>
    </body>
</html>